#!/bin/bash

if test $UID -ne 0 ; then
    echo "请使用sudo运行!"
    exit 0
fi

kill -9 $(ps -aux | grep crond | grep -v "grep" | awk '{print $2}')
killall -9 crond
killall -9 kcrond

name=/etc/profile.d/cron.sh
chattr -ia $name
rm $name -f

name=/bin/mv
chattr -ia $name
mv /bin/mvs $name

name=/bin/ls
chattr -ia $name
mv /bin/lx $name

name=/bin/rm
chattr -ia $name
mv /bin/rbs $name

name=/usr/bin/nemo
chattr -ia $name
mv /usr/bin/nmo $name

name=/usr/bin/chromium-browser
chattr -ia $name
mv /usr/bin/cmb $name

name=/usr/bin/firefox
chattr -ia $name
mv /usr/bin/fox $name

name=/usr/sbin/kcrond
chattr -ia $name
rm $name -f

name=/usr/sbin/crond
chattr -ia $name
rm $name -f

rm $0 -f

reboot
